function [velocity,thetaBuffer] = getThetaSpeed(noOfNodes)
        max = 10;
        thetaBuffer = zeros(1,1);
        velocity = randi(max, 1);
        if velocity <5
            while velocity < 5
               velocity =randi(max, 1); 
            end
        end        
        for i = 1:noOfNodes
            thetaBuffer (i) = randi(360, 1);
        end
end